package com.zcxx.common;

import lombok.Data;

import java.util.List;

/**
 * @Author WangShuai
 * @Date 2025/3/1 1:10
 * @Version 1.0
 * @Description 分页封装$
 */

@Data
public class PageInfo<T> {
    private int pageNum;  // 当前页码
    private int pageSize; // 每页大小
    private long total;   // 总记录数
    private List<T> list; // 数据列表

    public PageInfo(int pageNum, int pageSize, long total, List<T> list) {
        this.pageNum = pageNum;
        this.pageSize = pageSize;
        this.total = total;
        this.list = list;
    }
}

